package com.itheima.method.create;

/**
 * @author Anomaly
 * @date 2022/11/30 15:30
 */

/**
 * 方法的定义和调用
 */
public class MethodDemo {
    public static void main(String[] args) {
        System.out.println(sum(12, 16));
    }

    public static int sum(int a, int b) {
        return a + b;
    }

    public static void print() {
        System.out.println("hello");
    }
}
